package com.hua.designpattern.j2eepattern.compositeentity;

public class CoarseGrainedObject {
	private BaseObject1 baseObject1 = new BaseObject1();
	private BaseObject2 baseObject2 = new BaseObject2();

	public void setValue(String name, String data) {
		baseObject1.setName(name);
		baseObject2.setData(data);
	}

	public String[] getValue() {
		return new String[] { baseObject1.getName(), baseObject2.getData() };
	}
}
